package com.klxedu.ms.gateway.event;

import javax.servlet.http.HttpServletRequest;

public class LearningEvent extends Event {

	public static final String EVENT_TYPE_OPEN = "OPEN";
	public static final String EVENT_TYPE_EXIT = "EXIT";

	public LearningEvent(HttpServletRequest request, String origin) {
		super(request, origin, "learning");
	}

	private String courseID;
	private String eventType;

	public String getCourseID() {
		return courseID;
	}

	public void setCourseID(String courseID) {
		this.courseID = courseID;
	}

	public String getEventType() {
		return eventType;
	}

	public void setEventType(String eventType) {
		this.eventType = eventType;
	}

	@Override
	public String toString() {
		return "LearningEvent [courseID=" + courseID + ", eventType=" + eventType + ", toString()=" + super.toString()
				+ "]";
	}

}
